<template>
  <el-container class="home-container">
    <!--    头部-->
    <el-header>
      <div class="header-div">
        <span class="header-text" @click="index()">护工证书管理系统</span>
      </div>
    </el-header>
    <el-container>
      <!--      侧边栏-->
      <el-aside width="200px">

        <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            background-color="#2c3e50"
            text-color="#fff"
            active-text-color="#ffd04b"
            router
                  >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-user-solid"></i>
              <span>护工管理</span>
            </template>
            <el-menu-item class="el-icon-menu" index="/user">护工列表</el-menu-item>

          </el-submenu>
        </el-menu>

      </el-aside>
      <!--      主区域-->
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
    }

  },
  methods: {


  }

}

</script>
<style lang="less" scoped>

.header-text {
  align-items: center;
  display: flex;
  color: #eaedf1;
  font-size: 30px;
}

.home-container {
  height: 100%;

}

.el-header {
  background-color: #2c3e50;
}

.el-aside {
  background-color: #2c3e50;
}

.el-main {
  background-color: #EAEDF1
}


</style>
